//
//  TransportRootViewController.swift
//  Automobile
//
//  Created by erkebulan elzhan on 7/27/20.
//  Copyright © 2020 erkebulan elzhan. All rights reserved.
//

import UIKit

final class TransportRootViewController: UINavigationController {
    override func viewDidLoad() {
        super.viewDidLoad()
        self.navigationBar.isHidden = false
        self.navigationBar.barTintColor = .white
        self.navigationBar.titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.darkBlueColor]
        self.navigationBar.largeTitleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.darkBlueColor, NSAttributedString.Key.font: UIFont.systemFont(ofSize: 24, weight: .bold)]
        self.navigationBar.isTranslucent = true
        
    }
    override func viewDidDisappear(_ animated: Bool) {
        self.navigationController?.navigationBar.isHidden = true
    }
}

final class MoreRootViewController: UINavigationController {
    override func viewDidLoad() {
        super.viewDidLoad()
        navigationBar.isHidden = true
        navigationBar.backgroundColor = .white
        navigationBar.barTintColor = .white
        navigationBar.isTranslucent = true
        navigationBar.defaultNavBar()
        
        self.navigationBar.titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.darkBlueColor]
        self.navigationBar.largeTitleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.darkBlueColor, NSAttributedString.Key.font: UIFont.systemFont(ofSize: 24, weight: .bold)]
    }
}
final class AdsRootViewController: UINavigationController {
    override func viewDidLoad() {
        super.viewDidLoad()
        self.navigationBar.isHidden = true
        self.navigationBar.isTranslucent = true
        self.navigationBar.titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.darkBlueColor]
        self.navigationBar.largeTitleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.darkBlueColor, NSAttributedString.Key.font: UIFont.systemFont(ofSize: 24, weight: .bold)]
    }
}



